package com.woniuxy.microfundservice.bean;

import com.alibaba.fastjson.JSONObject;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

/**
 * @author: masterhai
 * @date: 2021/3/29:11:51
 * @description: 统一返回消息实体类
 */
@Data
@Builder
public class ResultBean {
    @Tolerate
    public ResultBean() {
    }

    private Integer code;
    private String msg;
    private Object data;

    public static String ParamError () {
        return JSONObject.toJSONString(ResultBean.builder().code(200).msg("非法参数").build());
    }
}
